{"version":3,"file":"font-manager.map.js","names":["BX","namespace","slice","Landing","Utils","arrayUnique","data","isString","create","append","remove","UI","Tool","FontManager","getInstance","instance","makeFontClassName","family","toLowerCase","trim","replace","makeFontFamily","category","replaceAll","fallbackMap","serif","display","handwriting","monospace","prototype","getLoadedFonts","elements","document","head","querySelectorAll","map","element","className","CSSDeclaration","querySelector","protected","getUsedLoadedFonts","usedLoadedFonts","loadedFonts","this","filter","font","length","usedFonts","getAllUsedFonts","forEach","loadedFont","isUsed","some","usedFont","push","rootElement","body","fonts","style","split","isLoaded","addFont","targetWindow","targetDocument","Promise","resolve","href","window","fontsProxyUrl","url","URL","host","link","attrs","rel","media","events","load","error","text","bind","getUnusedLoadedFonts","unusedFonts","removeUnusedFonts"],"sources":["font-manager.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,sBAEb,IAAIC,EAAQF,GAAGG,QAAQC,MAAMF,MAC7B,IAAIG,EAAcL,GAAGG,QAAQC,MAAMC,YACnC,IAAIC,EAAON,GAAGG,QAAQC,MAAME,KAC5B,IAAIC,EAAWP,GAAGG,QAAQC,MAAMG,SAChC,IAAIC,EAASR,GAAGG,QAAQC,MAAMI,OAC9B,IAAIC,EAAST,GAAGG,QAAQC,MAAMK,OAC9B,IAAIC,EAASV,GAAGG,QAAQC,MAAMM,OAO9BV,GAAGG,QAAQQ,GAAGC,KAAKC,YAAc,WAGjC,EAOAb,GAAGG,QAAQQ,GAAGC,KAAKC,YAAYC,YAAc,WAE5C,OACCd,GAAGG,QAAQQ,GAAGC,KAAKC,YAAYE,WAC9Bf,GAAGG,QAAQQ,GAAGC,KAAKC,YAAYE,SAAW,IAAIf,GAAGG,QAAQQ,GAAGC,KAAKC,YAEpE,EAQA,SAASG,EAAkBC,GAE1B,MAAO,UAAYA,EAAOC,cAAcC,OAAOC,QAAQ,KAAM,IAC9D,CASA,SAASC,EAAeJ,EAAQK,GAE/BL,EAASA,EAAOM,WAAW,IAAK,KAChC,IAAIC,EAAc,CACjB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